package net.qhzw.admin.mapper;

import net.qhzw.admin.entity.SysArea;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAreaMapper {

    int deleteByPrimaryKey(Long code);

    int insert(SysArea record);

    int insertSelective(SysArea record);

    SysArea selectByPrimaryKey(Long code);

    int updateByPrimaryKeySelective(SysArea record);

    int updateByPrimaryKey(SysArea record);


    /***
     * 根据父级code查询地区
     * @param pcode
     * @return
     */
    List<SysArea> selectByPcode(Long pcode);


    /**
     * id集合查询
     * @param cityIdList
     * @return
     */
    List<SysArea> selectByPrimaryKeyList(@Param("cityIdList") List<Long> cityIdList);
}